/*
 * Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
 *
 * https://www.mall4j.com/
 *
 * 未经允许，不可做商业用途！
 *
 * 版权所有，侵权必究！
 */
package com.yami.shop.service;

import com.yami.shop.bean.model.OrderItem;
import com.yami.shop.bean.param.ProdAnalysisParam;
import com.yami.shop.bean.param.ProdAnalysisSurveyParam;
import com.yami.shop.bean.param.VisitorAndPayTopParam;
import com.yami.shop.common.util.PageParam;

import javax.servlet.http.HttpServletResponse;


/**
 * 流量分析—页面数据统计表
 *
 * @author YXF
 * @date 2020-07-14 11:26:35
 */
public interface FlowProductAnalysisService {

    /**
     * 支付金额TOP、访客数TOP
     * @param page
     * @param param
     * @return
     */
    VisitorAndPayTopParam getPayAmountTop(PageParam<OrderItem> page, ProdAnalysisSurveyParam param);

    /**
     * 导出支付金额TOP、访客数TOP
     * @param response
     * @param param
     * @return
     */
    void payAmountTopExport(HttpServletResponse response, ProdAnalysisSurveyParam param);


    /**
     * 商品概况分析
     * @param param 参数
     * @return 商品概况分析
     */
    ProdAnalysisParam getProdSurvey(ProdAnalysisSurveyParam param);

    /**
     * 导出商品概况
     * @param param
     */
    void prodSurveyExport(HttpServletResponse response, ProdAnalysisSurveyParam param);
}
